package jt.classic.app.ldrc.impl;

import jt.classic.app.ldrc.ALdrc;

import org.limp.basework.AbstractSimpleBean;

import java.util.Map;

/**
 * 领导日程接口实现类
 * 
 * @author bizkit
 *
 */
public class ALdrcImpl extends AbstractSimpleBean implements ALdrc {
    private String id;
    private String bz;
    private String chld;
    private String chldid;
    private String djdate;
    private String djrid;
    private String djrname;
    private String edate;
    private String ehour;
    private String eminute;
    private String enoon;
    private String sdate;
    private String shour;
    private String sminute;
    private String snoon;
    private String sm;
    private String fbid;
    private String fbname;
    private String hddd;
    private String hdnr;
    private String ptry;
    private int status;
    private String zbdw;
    private String yhld;

    public String ibz() {
        // TODO Auto-generated method stub
        return this.bz;
    }

    public String ichld() {
        // TODO Auto-generated method stub
        return this.chld;
    }

    public String ichldid() {
        // TODO Auto-generated method stub
        return this.chldid;
    }

    public boolean ihaschld(String id, String groupid) {
        boolean rnt = this.yhld.indexOf(id + "@" + groupid) > -1;

        return rnt;
    }

    public String id() {
        // TODO Auto-generated method stub
        return this.id;
    }

    public String idjdate() {
        // TODO Auto-generated method stub
        return this.djdate;
    }

    public String idjrid() {
        // TODO Auto-generated method stub
        return this.djrid;
    }

    public String idjrname() {
        // TODO Auto-generated method stub
        return this.djrname;
    }

    public String iedate() {
        // TODO Auto-generated method stub
        return this.edate;
    }

    public String iehour() {
        // TODO Auto-generated method stub
        return this.ehour;
    }

    public String ieminute() {
        // TODO Auto-generated method stub
        return this.eminute;
    }

    public String ienoon() {
        // TODO Auto-generated method stub
        return this.enoon;
    }

    public String ifbid() {
        // TODO Auto-generated method stub
        return this.fbid;
    }

    public String ifbname() {
        // TODO Auto-generated method stub
        return this.fbname;
    }

    public String ihddd() {
        // TODO Auto-generated method stub
        return this.hddd;
    }

    public String ihdnr() {
        // TODO Auto-generated method stub
        return this.hdnr;
    }

    public String iptry() {
        // TODO Auto-generated method stub
        return this.ptry;
    }

    public String isdate() {
        // TODO Auto-generated method stub
        return this.sdate;
    }

    public String ishour() {
        // TODO Auto-generated method stub
        return this.shour;
    }

    public String ism() {
        // TODO Auto-generated method stub
        return this.sm;
    }

    public String isminute() {
        // TODO Auto-generated method stub
        return this.sminute;
    }

    public String isnoon() {
        // TODO Auto-generated method stub
        return this.snoon;
    }

    public int istatus() {
        // TODO Auto-generated method stub
        return this.status;
    }

    public String izbdw() {
        // TODO Auto-generated method stub
        return this.zbdw;
    }

    public void reload(Map info) {
        if (info != null) {
            this.info = info;
            this.id = (String) info.get("ID");
            this.chldid = (String) info.get("CHLDID");
            this.chld = (String) info.get("CHLD");
            this.sdate = (String) info.get("SDATE");
            this.snoon = (String) info.get("SNOON");
            this.shour = (String) info.get("SHOUR");
            this.sminute = (String) info.get("SMINUTE");
            this.edate = (String) info.get("EDATE");
            this.enoon = (String) info.get("ENOON");
            this.ehour = (String) info.get("EHOUR");
            this.eminute = (String) info.get("EMINUTE");
            this.zbdw = (String) info.get("ZBDW");
            this.hddd = (String) info.get("HDDD");
            this.hdnr = (String) info.get("HDNR");
            this.ptry = (String) info.get("PTRY");
            this.sm = (String) info.get("SM");
            this.djrid = (String) info.get("DJRID");
            this.djrname = (String) info.get("DJRNAME");
            this.djdate = (String) info.get("DJDATE");
            this.bz = (String) info.get("BZ");
            this.fbid = (String) info.get("FBFWID");
            this.fbname = (String) info.get("FBFWNAME");
            this.status = Integer.parseInt((String) info.get("STATUS"));
            this.yhld = (String) info.get("YHLD");
        }
    }
}
